﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web.Mvc;
using GWEB.WebBase.Entity;
using GWEB.WebBase.Utility;
using GWEB.WebFrame.Public;
using Newtonsoft.Json;

namespace GWEB.WebFrame.Customer
{
    public class CustomerEditController : PageInfoBase
    {
        [ActionFilter(IsLogin = true)]       
        public ActionResult Index(String id, String keyCode)
        {
            DataRow drUser = BasePage.GetUser(Session);
            String leagueId = Fun.cString(drUser["LeagueId"].ToString());
            //跟进人员所在加盟商的课程
            String sql = "select id,CourseName from cu_Course where CourseState=1 and LeagueId=" + leagueId;
            ViewBag.Course = BasePage.bd.ExecuteTable(sql);         
            return Load("CustomerEdit", "Customer/CustomerEdit", id, keyCode);
        }        
    }
}